// @ts-ignore
/* eslint-disable */
import request from "@/request";

/** 删除育人成果 POST /api/educationAchievement/deleteAchievement */
export async function deleteEducationAchievementUsingPost(
  body: API.EducationAchievementRequestArtical[],
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseObject_>(
    "/api/educationAchievement/deleteAchievement",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 查询所有育人成果（支持公共/个人、文章Id、关键词、排序、分页） POST /api/educationAchievement/getEducation/public */
export async function getEducationAchievementRequestArticleUsingPost(
  body: API.EducationAchievementRequestArtical,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseObject_>(
    "/api/educationAchievement/getEducation/public",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 发布育人成果 POST /api/educationAchievement/publish */
export async function publishAchievementRequestArticleUsingPost(
  body: API.EducationAchievementRequestArtical,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/educationAchievement/publish", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 更改（标题，内容，图片） POST /api/educationAchievement/updateAchievement */
export async function updateAchievementArticleUsingPost(
  body: API.EducationAchievementRequestArtical,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseObject_>(
    "/api/educationAchievement/updateAchievement",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
